package com.training.bt.config;

import com.training.bt.enums.*;;

public class DownloadLimitConfig {
    public static int DownloadLimitForRole(Role role){
        return switch(role){
            case ADMIN -> Integer.MAX_VALUE;
            case LEVEL_1 -> 50 * 1024;
            case LEVEL_2 -> 100 * 1024;
            default -> 500 * 1024;
        };
    }
}
